﻿using Newtonsoft.Json;
using System.Collections.Generic;

namespace TiktokAcquisition
{
    public class AcquisitionData
    {
        [JsonProperty("cookies")]
        public Dictionary<string, string> Cookies { get; set; }

        [JsonProperty("main_sec_uid")]
        public string MainSecUid { get; set; }

        [JsonProperty("ES")]
        public EsConfig ES { get; set; }

        [JsonProperty("acquisitionApi")]
        public string AcquisitionApi { get; set; }

        public int Count { get; set; } = 0;

        public string Area { get; set; }

        public string Gender { get; set; }
        /// <summary>
        /// 采集间隔时间
        /// </summary>
        public float Acquisitiontime { get; set; }
        /// <summary>
        /// 翻页间隔时间
        /// </summary>
        public float listenTime { get; set; }

    }

    public class EsConfig
    {
        [JsonProperty("ES_HOST")]
        public string Host { get; set; }

        [JsonProperty("ES_fans_index")]
        public string FansIndex { get; set; }

        [JsonProperty("ES_blogger_fans_relation")]
        public string BloggerFansRelation { get; set; }
        [JsonProperty("ES_blogger_listening")]
        public string Blogger_listening { get; set; }
    }
}
